<table class="standard-table">

    
<?php foreach ($tbl_products as $tbl_product) { ?>
	<tr><td>
			<a href="<?php echo site_url().'kupon/product_detail/'.$tbl_product['id'].'.exe';?>">
            <img class="thumbnail" src="<?php $pic = $this->picture_product_model->get_where(array('product_id'=>$tbl_product['id'], 'type_picture'=>'default'));
				echo $pic->num_rows() != 0 ? base_url().$pic->row()->picture : base_url('images/products/product.png');?>"  />
            </a>
             
            <li><h2>
                <a href="<?php echo site_url().'kupon/product_detail/'.$tbl_product['id'].'.exe';?>">
               	 <?php echo $tbl_product['nama_product']; ?>
                </a></h2></li>           
           
            <li><h2><?php echo 'RM '.number_format($tbl_product['harga_product'],2); ?></h2></li>        
           
            <?php echo form_open('kupon/cartinsert');?>
            <input type="hidden" value="<?php echo $tbl_product['id'];?>" name="product_id"/>
            <input type="hidden" value="1" name="quantity" />
            <input type="hidden" value="<?php echo $tbl_product['nama_product']; ?>" name="product_name" />
            <input type="hidden" value="<?php echo $tbl_product['harga_product']; ?>" name="price" />
            <input type="hidden" value="<?php echo $this->session->userdata('guestid');?>" name="cus_id_temp" />
            <input type="submit" value="Add to Cart">
            <?php echo form_close();?>
      
 	</td></tr>
<?php } ?>
</table>
<?php echo $pagination; ?>
<br>

<?php echo form_close();?>